#! /bin/bash

cd

# 下载openEuler kernel
if [ ! -d "kernel" ]; then
    git clone -b openEuler-22.03-LTS https://gitee.com/openeuler/kernel.git
fi

# 安装依赖
dnf install bison ccache default-jdk flex gcc-arm-linux-gnueabi gcc-arm-none-eabi genext2fs liblz4-tool libssl-dev libtinfo5 mtd-utils mtools openssl ruby scons unzip u-boot-tools zip